<?php
	
	require_once ("script/Application.php");
	$arrFiles = Application::all_files("./files",".xml");

?>

<br>
<div id="admin_header">
	<div class="admin_index_title">Gestion des droits</div>
</div>
<div id="admin_header_border"></div>

<div id="admin_search_tab">
	<label class="search" style="padding-top:3px;">Fichier : </label>
	<label class="search"><input type="text" name="search" class="search_input" /> </label>
	<label class="search"><a href="#"><img src="images/adminicons/search.png" border="0" /></a>	 </label>
</div>


<div class="table_grid">
		<table cellspacing="0" cellpadding="0">
			<tr>
				<th style="width:10px;">Select</th>
				<th style="width:50px;"><a href="#" class="pink">Nom </a></th>
				<th style="width:auto;"><a href="#" class="pink">Chemin</a></th>
				<th style="width:auto;"><a href="#" class="pink">Droits</a></th>               
			</tr>
			<?php
				if(isset($arrFiles) && count($arrFiles) > 0)
				{
					foreach($arrFiles as $ligne)
					{
						echo '<tr class="even">';
							echo '<td><input type="checkbox" name="_checkbox" id="selectCheckbox" /></td>';
							foreach($ligne as $colonne)
							{
								echo '<td>'.$colonne.'</td>';
								
							}
							$file = $ligne['file'];
							echo"<td><a href=\"index.php?page=modif_droits.php&file=$file\"><img src=\"images/adminicons/config.png\" width=\"24\" height=\"24\" border=\"0\" /></a></td>";
						echo '</tr>';
					}
				}
			?>	
		</table>
</div>
      	        	

